/**
 * 督办管理api
 */

import request from '@/utils/request'
import { officeApiUrl, unionApiUrl } from '@/api/config.js'

const api = officeApiUrl + '/oversee'

// 列表
export function getList(data) {
  return request.post(`${api}/list`, data)
}

// 督办详情
export function detail(data) {
  return request.post(`${api}/detail`, data)
}

// 延期申请详情
export function delayDetail(data) {
  return request.post(`${api}/delay-apply/detail`, data)
}

// 新增
export function create(data) {
  return request.post(`${api}/add`, data)
}

// 编辑
export function update(data) {
  return request.post(`${api}/edit`, data)
}

// 删除
export function remove(data) {
  return request.post(`${api}/delete`, data)
}

// 枚举值
export function getLabels(data) {
  return request.post(`${officeApiUrl}/label-types/query`,data)
}
//获取数据字典
export function getDataDict(data) {
  return request.post(`${unionApiUrl}/typesLabel/queryTypesLabelList`, data)
}
